#ifndef AUTOCLOSE_H
#define AUTOCLOSE_H

#include <QIODevice>


class AutoClose
{
private:
    QIODevice& mDevice;
    bool mShouldClose;

public:
    explicit AutoClose(QIODevice& device, QIODevice::OpenMode flags);
    virtual ~AutoClose();

    bool isOpen();
};

#endif // AUTOCLOSE_H
